package com.hxkj.client.service;

import com.hxkj.domain.po.ContentMapping;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @InterfaceName ContentMappingServiceClient
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/9/9 14:46
 * @Version 1.0
 */
@FeignClient(name = "cms-article")
public interface ContentMappingServiceClient {

    /**
     * @author Mr.zheng
     * @Description getContentMapping 根据站点和分类ID获取映射表对应字段
     * @Date 14:57 2018/9/9
     * @Param [contentMapping]
     * @return java.util.concurrent.Callable<java.util.List<com.hxkj.domain.po.ContentMapping>>
     **/
    @RequestMapping(value = "/contentMapping/getContentMappingList", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultDataStruct<List<ContentMapping>> getContentMappingList(@RequestBody ContentMapping contentMapping) throws Exception;

    /**
     * @author Mr.zheng
     * @Description saveContentMapping 新增映射字段
     * @Date 15:07 2018/9/9
     * @Param [contentMapping]
     * @return java.util.concurrent.Callable<com.platform.common.domain.result.ResultMessageStruct>
     **/
    @RequestMapping(value = "/contentMapping/saveContentMapping", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct saveContentMapping(@RequestBody ContentMapping contentMapping) throws Exception;
}
